package hu.mapro.gwtui.client.model;

import com.google.gwt.cell.client.Cell;

public abstract class BooleanProperty<T> extends AbstractDisplayableProperty<T, Boolean> {

	private LabelProvider<Boolean> labelProvider = new ToStringLabelProvider<Boolean>();

	public BooleanProperty(String propertyName, String label) {
		super(propertyName, label);
	}

	@Override
	public Cell<Boolean> getDisplayField() {
		return new LabelProviderCell<Boolean>(labelProvider);
	}

}
